package day02.override;

/**
 * @author yangwenqi
 * @decs TODO
 * @date 2025/4/17
 */
public class Manager extends Employee {
    private String department;  //
    public Manager(String name, String address, double baseSalary, String department) {
        super(name, address, baseSalary);
        this.department = department;
    }
    public String getDepartment() {
        return department;
    }
    public void setDepartment(String department) {
        this.department = department;
    }
    @Override
    public void show() {
        System.out.println("经理基本信息");
        System.out.println("姓名：" + getName());
        System.out.println("地址：" + getAddress());
        System.out.println("基本工资：" + getsalary());
        System.out.println("所管部门：" + department);
    }
}
